﻿<UserControl x:Class="Caliburn.Micro.BubblingAction.ShellView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:cal="http://www.caliburnproject.org">
	<StackPanel>
		<ItemsControl x:Name="Items">
			<ItemsControl.ItemTemplate>
				<DataTemplate>
					<StackPanel Orientation="Horizontal">
						<Button Content="Remove"
						        cal:Message.Attach="Remove($dataContext)" />
						<TextBlock Text="{Binding Id}" />
					</StackPanel>
				</DataTemplate>
			</ItemsControl.ItemTemplate>
		</ItemsControl>
		<Button Content="Add"
		        cal:Message.Attach="Add" />
	</StackPanel>
</UserControl>